// 库内管理的接口APi
import request from '@/utils/request'
/**
 * 获取货架排号列表数据的api
 */
export const GetLocRowListApi = (data) => request({
  method: 'post',
  url: '/WmsInnerManage/GetLocRowList',
  data
})

/**
 * 获取货架尺寸数据的api
 */
export const GetLocSizeApi = (data) => request({
  method: 'post',
  url: `/WmsInnerManage/GetLocSize?row=${data}`,
  data
})

/**
 * 获取指定排号的货架信息数据的api
 */
export const GetLocInfoByAisleApi = (data) => request({
  method: 'post',
  url: `/Location/GetLocInfoByAisle?aisle=${data}`,
  data
})

/**
 * 获取所有货架数据的api
 */
export const GetAllLocInfoApi = (data) => request({
  method: 'post',
  url: `/Location/GetAllLocInfo`,
  data
})

/**
 * 修改货架锁定的api
 */
export const UpdateWcsLockApi = (data) => request({
  method: 'post',
  url: `/Location/UpdateWcsLock`,
  data
})

/**
 * 修改批量修改锁定的api
 */
export const UpdateWcsLockRangeApi = (data) => request({
  method: 'post',
  url: `/Location/UpdateWcsLockRange`,
  data
})

/**
 * 批量修改货架基准货架的api
 */
export const UpdateWcsLocationBasicShelfApi = (data) => request({
  method: 'post',
  url: `/Location/UpdateWcsLocationBasicShelf`,
  data
})

/**
 * 批量修改货架区域的api
 */
export const UpdateWcsLocationZoneApi = (data) => request({
  method: 'post',
  url: `/Location/UpdateWcsLocationZone`,
  data
})

/**
 * 修改货架状态的api
 */
export const UpdateWcsStatusApi = (data) => request({
  method: 'post',
  url: `/WmsInnerManage/UpdateWcsStatus`,
  data
})

/**
 * 查询货架信息的api
 */
export const GetWcsLocationApi = (data) => request({
  method: 'post',
  url: `/Location/GetWcsLocation`,
  data
})

/**
 * 查询移库任务的api
 */
export const GetWmsLocMoveTaskApi = (data) => request({
  method: 'post',
  url: `/WmsInnerManage/GetWmsLocMoveTask`,
  data
})

/**
 * 查询移库历史的api
 */
export const GetWmsLocMoveTaskHistoryApi = (data) => request({
  method: 'post',
  url: `/WmsInnerManage/GetWmsLocMoveTaskHistory`,
  data
})

/**
 * 获取库存信息的api
 */
export const GetWmsStockApi = (data) => request({
  method: 'post',
  url: `/WmsInnerManage/GetWmsStock`,
  data
})

/**
 * 获取创建出库单的api
 */
export const CreateOutboundOrderApi = (data) => request({
  method: 'post',
  url: `/WmsInnerManage/CreateOutboundOrder`,
  data
})

/**
 * 获取创建批量出库单的api
 */
export const CreateOutboundOrderSApi = (data) => request({
  method: 'post',
  url: `/WmsInnerManage/CreateOutboundOrderS`,
  data
})
/**
 * 获取创建盘点单的api
 */
export const CreateInventoryOrderApi = (data) => request({
  method: 'post',
  url: `/WmsInnerManage/CreateInventoryOrder`,
  data
})

/**
 * 获取创建紧急出库的api
 */
export const CreateOutboundTaskApi = (data) => request({
  method: 'post',
  url: `/WmsInnerManage/CreateOutboundTask`,
  data
})

/**
 * 获取创建移库任务的api
 */
export const CreatelocMoveTaskApi = (data) => request({
  method: 'post',
  url: `/WmsInnerManage/CreatelocMoveTask`,
  data
})
